import request from '../utils/request'

export function getDashboardStats() {
  return request({
    url: '/api/student/dashboard-stats',
    method: 'get',
  })
}

export function getProfile() {
  return request({
    url: '/api/student/profile',
    method: 'get',
  })
}

export function updateProfile(data) {
  return request({
    url: '/api/student/profile',
    method: 'put',
    data,
  })
}

export function getMyPositions(params) {
  return request({
    url: '/api/student/my-position',
    method: 'get',
    params,
  })
}

export function getWorkTimePositions() {
  return request({
    url: '/api/student/work-time-positions',
    method: 'get',
  })
}

export function submitWorkTimeRecord(data) {
  return request({
    url: '/api/student/work-time-record',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

export function getWorkTimeRecords(params) {
  return request({
    url: '/api/student/work-time-records',
    method: 'get',
    params,
  })
} 